package com.ruoyi.charge.auth.entity.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author fanqie
 */
@Data
@ApiModel("注册对象")
public class RegisterReq {
    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(name = "手机号")
    private String phone;

    /**
     * 验证码
     */
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(name = "密码")
    private String password;

    /**
     * 类型
     */
    @NotNull(message = "类型不能为空")
    @ApiModelProperty(name = "类型，0 店铺商户 1 代理商")
    private Integer type;
}
